package view;

import javax.swing.BorderFactory;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.LayoutStyle;
import javax.swing.border.TitledBorder;
import javax.swing.table.DefaultTableModel;

public class InVoiceViewPanel extends JPanel {
	private JButton btnSearch_ViewIn;
	private JComboBox <String> cbbSearch_ViewIn;
	private JLabel lblSearchBy_ViewIn;
	private JPanel panelSearch_ViewIn;
	private JPanel panelInfor_ViewIn;
	private JScrollPane jScrollPane1;
	private JScrollPane jScrollPane2;
	private JTable table1_ViewIn;
	private JTable table2_ViewIn;
	private JTextField tfSearch_ViewIn;

	private static final long serialVersionUID = 1L;

	public InVoiceViewPanel() {
		initComponents();
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	private void initComponents() {

		panelSearch_ViewIn = new JPanel();
		tfSearch_ViewIn = new JTextField();
		btnSearch_ViewIn = new JButton();
		lblSearchBy_ViewIn = new JLabel();
		cbbSearch_ViewIn = new JComboBox();
		panelInfor_ViewIn = new JPanel();
		jScrollPane1 = new JScrollPane();
		table1_ViewIn = new JTable();
		jScrollPane2 = new JScrollPane();
		table2_ViewIn = new JTable();

		setBackground(new java.awt.Color(255, 255, 255));
		setLayout(null);

		panelSearch_ViewIn.setBackground(new java.awt.Color(255, 255, 255));
		panelSearch_ViewIn.setBorder(BorderFactory.createTitledBorder(null, "Search",
				TitledBorder.DEFAULT_JUSTIFICATION,
				TitledBorder.DEFAULT_POSITION, new java.awt.Font("Calibri", 1,
						12))); // NOI18N
		panelSearch_ViewIn.setLayout(null);
		panelSearch_ViewIn.add(tfSearch_ViewIn);
		tfSearch_ViewIn.setBounds(10, 30, 130, 20);

		btnSearch_ViewIn.setIcon(new ImageIcon("icon/search.png")); // NOI18N
		btnSearch_ViewIn.setText("Search");
		btnSearch_ViewIn.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton5ActionPerformed(evt);
			}
		});
		panelSearch_ViewIn.add(btnSearch_ViewIn);
		btnSearch_ViewIn.setBounds(240, 30, 90, 20);

		lblSearchBy_ViewIn.setText("By");
		panelSearch_ViewIn.add(lblSearchBy_ViewIn);
		lblSearchBy_ViewIn.setBounds(150, 30, 20, 20);

		cbbSearch_ViewIn.setModel(new DefaultComboBoxModel(new String[] { "Item 1",
				"Item 2", "Item 3", "Item 4" }));
		panelSearch_ViewIn.add(cbbSearch_ViewIn);
		cbbSearch_ViewIn.setBounds(170, 30, 56, 20);

		add(panelSearch_ViewIn);
		panelSearch_ViewIn.setBounds(10, 10, 350, 70);

		panelInfor_ViewIn.setBackground(new java.awt.Color(255, 255, 255));
		panelInfor_ViewIn.setBorder(BorderFactory.createTitledBorder(null, "Information",
				TitledBorder.DEFAULT_JUSTIFICATION,
				TitledBorder.DEFAULT_POSITION, new java.awt.Font("Calibri", 1,
						12))); // NOI18N

		table1_ViewIn.setModel(new DefaultTableModel(new Object[][] {
				{ null, null, null }, { null, null, null },
				{ null, null, null }, { null, null, null },
				{ null, null, null } }, new String[] { "Product Name",
				"Quantity", "Price" }));
		jScrollPane1.setViewportView(table1_ViewIn);

		table2_ViewIn.setModel(new DefaultTableModel(new Object[][] {
				{ null, null, null, null }, { null, null, null, null },
				{ null, null, null, null }, { null, null, null, null },
				{ null, null, null, null } }, new String[] { "Invoice ID",
				"Date", "Customer Name", "Total" }));
		jScrollPane2.setViewportView(table2_ViewIn);

		GroupLayout jPanel3Layout = new GroupLayout(panelInfor_ViewIn);
		panelInfor_ViewIn.setLayout(jPanel3Layout);
		jPanel3Layout.setHorizontalGroup(jPanel3Layout
				.createParallelGroup(GroupLayout.Alignment.LEADING)
				.addComponent(jScrollPane2, GroupLayout.DEFAULT_SIZE, 668,
						Short.MAX_VALUE)
				.addGroup(
						jPanel3Layout
								.createSequentialGroup()
								.addComponent(jScrollPane1,
										GroupLayout.PREFERRED_SIZE, 267,
										GroupLayout.PREFERRED_SIZE)
								.addGap(0, 0, Short.MAX_VALUE)));
		jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(
				GroupLayout.Alignment.LEADING)
				.addGroup(
						jPanel3Layout
								.createSequentialGroup()
								.addComponent(jScrollPane1,
										GroupLayout.PREFERRED_SIZE, 115,
										GroupLayout.PREFERRED_SIZE)
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.RELATED)
								.addComponent(jScrollPane2,
										GroupLayout.PREFERRED_SIZE, 152,
										GroupLayout.PREFERRED_SIZE)
								.addGap(0, 12, Short.MAX_VALUE)));

		add(panelInfor_ViewIn);
		panelInfor_ViewIn.setBounds(10, 80, 680, 310);
	}

	private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {
	}

}
